package com.gf.exam.model;

import java.io.Serializable;
import java.util.Date;

import com.gf.base.type.Activity;
import com.gf.base.type.ExamType;
import com.gf.base.type.PlayMode;

/**
 * 总体的一个测试项目<br>
 * 一个测试项目由多个cell组成
 * 
 * @author zhuguifeng
 * 
 */
@SuppressWarnings("serial")
public class Exam implements Serializable {

	private long id;
	private long userId;// 发布人
	private String userName;// 用户昵称
	private String title;// 标题（数据库以此为索引）
	private String introduction;// 介绍、前言
	private Date createtime;// 创建时间
	private Date updatetime;// 更新时间,方便于索引
	private int cellNo;// 总的题数
	private long submitNo;// 项目提交数
	private long validNo;// 项目有效数(由发布人审核，默认有效)
	private Timer timer;// 定时器
	private boolean active;//A-B之间是否激活
	private int repeatFrom; // A
	private int repeatTo;// B
	private PlayMode playMode;// A-B PPT的播放方式
	private int repeatTime;// A-B 播放方式
	private ExamType examType;// 项目类型
	private Activity activity;
	private String formatUpdatetime;
	private String formatCreatetime;

	public String getFormatCreatetime() {
		return formatCreatetime;
	}

	public void setFormatCreatetime(String formatCreatetime) {
		this.formatCreatetime = formatCreatetime;
	}

	public String getFormatUpdatetime() {
		return formatUpdatetime;
	}

	public void setFormatUpdatetime(String formatUpdatetime) {
		this.formatUpdatetime = formatUpdatetime;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getIntroduction() {
		return introduction;
	}

	public void setIntroduction(String introduction) {
		this.introduction = introduction;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Date getUpdatetime() {
		return updatetime;
	}

	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}

	public int getCellNo() {
		return cellNo;
	}

	public void setCellNo(int cellNo) {
		this.cellNo = cellNo;
	}

	public long getSubmitNo() {
		return submitNo;
	}

	public void setSubmitNo(long submitNo) {
		this.submitNo = submitNo;
	}

	public long getValidNo() {
		return validNo;
	}

	public void setValidNo(long validNo) {
		this.validNo = validNo;
	}

	public Timer getTimer() {
		return timer;
	}

	public void setTimer(Timer timer) {
		this.timer = timer;
	}

	public ExamType getExamType() {
		return examType;
	}

	public void setExamType(ExamType examType) {
		this.examType = examType;
	}

	public Activity getActivity() {
		return activity;
	}

	public void setActivity(Activity activity) {
		this.activity = activity;
	}

	public int getRepeatFrom() {
		return repeatFrom;
	}

	public void setRepeatFrom(int repeatFrom) {
		this.repeatFrom = repeatFrom;
	}

	public int getRepeatTo() {
		return repeatTo;
	}

	public void setRepeatTo(int repeatTo) {
		this.repeatTo = repeatTo;
	}

	public PlayMode getPlayMode() {
		return playMode;
	}

	public void setPlayMode(PlayMode playMode) {
		this.playMode = playMode;
	}

	public int getRepeatTime() {
		return repeatTime;
	}

	public void setRepeatTime(int repeatTime) {
		this.repeatTime = repeatTime;
	}

	public boolean isActive() {
		return active;
	}

	public void setActive(boolean active) {
		this.active = active;
	}

}
